package com.walker.controller;

import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RestController;

import java.util.HashMap;
import java.util.Map;

/**
 * @Description:
 * @ProjectName: walker-step
 * @Package: com.walker.controller
 * @ClassName: HelloController
 * @Author: yangyl
 * @CreateDate: 2020/7/12 14:52
 */
@RestController
public class HelloController {

    @GetMapping("/hello")
    public Map<String,Object> hello(){
        Map<String,Object> ret=new HashMap<>(2);
        ret.put("code",0);
        ret.put("msg","成功");
        return ret;
    }
}
